package com.antis.olsl.magic;

import com.antis.olsl.base.BaseActivity;
import com.antis.olsl.library.MyApplication;
import com.antis.olsl.library.bean.UserInfo;
import com.antis.olsl.magic.databinding.ActivityMagicMainBinding;

public class MagicMainActivity extends BaseActivity<ActivityMagicMainBinding> {

    @Override
    protected ActivityMagicMainBinding getViewBinding() {
        return ActivityMagicMainBinding.inflate(getLayoutInflater(), baseBinding.getRoot(), true);
    }

    @Override
    protected void initViews() {

    }

    @Override
    protected void initData() throws IllegalAccessException {
        if (MyApplication.getUserInfo() == null) {
            UserInfo userInfo = new UserInfo();
            userInfo.setMerchantId("3b138a41030e41e6b89516e9edd95f43");
            userInfo.setUserId("50169");
            userInfo.setPhonenumber("18655009270");
            userInfo.setAvatar("https://ads-mrp-system-bj.oss-cn-beijing.aliyuncs.com/img/fea369d3978c425.jpg");
            MyApplication.setUserInfo(userInfo);
        }
    }
}